import pkg_resources
from pptx import Presentation
from pptx.util import Cm

prs = Presentation("trext.pptx")
# 使用第七个版式
black_slide_layout = prs.slide_layouts[6]
slide = prs.slides.add_slide(black_slide_layout)
print('')
left = top = Cm(2)
pic = slide.shapes.add_picture("/Users/user/PycharmProjects/text1/matplotlib/one.png", left, top)

prs.save("trext.pptx")

